package com.joysuch.wwyt.bp.bean;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.joysuch.wwyt.core.bean.BaseAttachmentBean;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
@ApiModel(value = "签字确认")
public class BpWorkSafetySigenerAddBean implements Serializable {

    @ApiModelProperty(value = "id")
    private Long id;

    @ApiModelProperty(value = "作业证id")
    // @NotNull(message = "作业证id不能为空")
    private Long certId;

    @ApiModelProperty(value = "作业证类型")
    // @NotNull(message = "作业证类型不能为空")
    private String type;

    @ApiModelProperty(value = "签名人,签名日期,图片集合")
    private BpWorkSafetySigenerListBean listBean;
//
//    //签名人id
//    @ApiModelProperty(value = "签名人id")
//    //  @NotNull(message = "签名人不能为空")
//    private Long userId;
//
//    @ApiModelProperty(value = "签名人姓名:返回前端")
//    private String userName;
//
//    //签名日期
//    @ApiModelProperty(value = "签名日期")
//    //  @NotNull(message = "签名日期不能为空")
//    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
//    private Date date;
//
//    //签名图片
//    @ApiModelProperty(value = "签名图片")
//    //  @NotNull(message = "签名图片不能为空")
//    private com.joysuch.wwyt.core.bean.BaseAttachmentBean BaseAttachmentBean;

    //签名分类:0危害辨识;1措施确认;2分析;3确认
    @ApiModelProperty(value = "签名分类:0危害辨识页面;1措施确认页面;2分析页面;3确认页面")
    private Integer categoryId;

    //签名描述
    @ApiModelProperty(value = "签名描述:动火人; 申请单位意见;完工验收;作业开始时间...")
    // @NotNull(message = "措施不能为空")
    private String content;

    //是否同意
    @ApiModelProperty(value = "是否同意:0同意;1不同意;2不涉及")
    private Integer yesOrNo ;
    private String yesOrNoName ;

    //验收意见
    @ApiModelProperty(value = "验收意见")
    private String checkMessage;

    @ApiModelProperty(value = "作业单位负责人完工确认情况")
    private String unitOpinion;

    @ApiModelProperty(value = "生产车间(分厂)负责人完工确认情况")
    private String workshopOpinion;

}
